#有意打乱这个文件，然后运行，看看你会收到什么样的错误信息，确保你能把它修复好。

print("Let's practice everything.")#打印信息
print('You\'d need to know \'bout escapes with \\ that do:')#打印信息
print('\n newlines and \t tabs.')#打印信息

poem = """ \tThe lovely world
with logic so firmly planted
cannot discern \n the needs of love
nor comprehend passion from intuition
and requires an explanation
\n\t\twhere there is none.""" #变量赋值

print("----------")#打印信息
print(poem)#打印变量pome赋值信息
print("----------")#打印信息

def secret_formula(started):#定义函数secret_formula，给了started参数
    jelly_beans = started * 500
    jars = jelly_beans / 1000
    crates = jars / 100
    return jelly_beans, jars, crates#返回jelly_beans, jars, crates值

start_point = 10000
jelly_beans, jars, crates = secret_formula(start_point)

# remember that this is another way to format a string
print("With a starting point of: {}".format(start_point))
# it's just like with an f"" string
print(f"We'd have { jelly_beans} beans, {jars} jars, and {crates} crates.")

start_point = start_point + 10 #start_point_重新赋值

print("We can also do that this way:")
formula = secret_formula(start_point)
# this is an easy way to apply a list to a format string
print("We'd have {} beans, {} jars, and {} crates.".format(*formula))